<?php

class McCube_Template_Parser_Element_Command_Parent
    extends McCube_Template_Parser_Element_Command_Abstract{

    public function execution(array $element){
        $el = explode(' ', $element['value']);
        if(!isset($el[1])){
            $el[1] = $el[0];
            $el[0] = '';
        }
        return $this->_tplEngine->bundle->get(array('view'=> $el[1]), $el[0]);
    }

    public function buildStart(array $element){
        return $this->execution($element);

    }

}